package com.java.pertar.springiocdi;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Usertest {

    @Bean("s1")
    public UserInfo s1() {
        return new UserInfo("lisi", 33);
    }

    @Bean("s2")
    public UserInfo s2() {
        return new UserInfo("zhangsan", 32);
    }

//    @Bean("s2")
//    public void s2() {
//        System.out.println("s2");
//    }

}
